<?php
/**
 * Class descript.
 * User: chan
 * Date: 2017/10/20 11:22
 */

namespace app\api\controller;
class Membership extends Base
{
    //检查权限作用域
    protected $beforeActionList  = [
        'checkPrimaryScope' => [
            'except' => 'except'
        ],
    ];

    /**
     * 记录关系
     */
    public function relation_ship()
    {
        $result =  (new \app\api\logic\Membership())->relation_ship();
        return $this->ajaxReturn($result);
    }

    /**
     * 生成二维码
     */
    public function qr_code()
    {
        $result =  (new \app\api\logic\Membership())->qr_code();
        return $this->ajaxReturn($result);
    }

    /**
    *  我的会员
    */
    public function my_member(){
        $result =  (new \app\api\logic\Membership())->my_member();
        return $this->ajaxReturn($result);
    }


    /**
    *   绑定银行卡
    */
    public function my_bankcard(){
        $result =  (new \app\api\logic\Membership())->my_bankcard();
        return $this->ajaxReturn($result);
    }

    /**
    *用户余额
    */
    public function balance(){
        $result =  (new \app\api\logic\Membership())->balance();
        return $this->ajaxReturn($result);
    }

    /**
    *提现
    */
    public function withdraw(){
        $result =  (new \app\api\logic\Membership())->withdraw();
        return $this->ajaxReturn($result);
    }

    /**
    *个人分拥明细
    */
    public function personal_details(){
        $result =  (new \app\api\logic\Membership())->personal_details();
        return $this->ajaxReturn($result);
    }

    //申请会员
    public function apply_for_membership(){
        $result =  (new \app\api\logic\Membership())->apply_for_membership();
        return $this->ajaxReturn($result);
    }

    //查询申请会员
    public function inquire_member(){
        $result =  (new \app\api\logic\Membership())->inquire_member();
        return $this->ajaxReturn($result);
    }

}